package com.zwy.ubts.service.impl;

import com.zwy.ubts.dao.BookDao;
import com.zwy.ubts.dao.LbDao;
import com.zwy.ubts.service.BaseService;
import com.zwy.ubts.service.LbService;

import java.util.List;

/**
 * @Author Zhou Wenying
 * @Description:
 * @Date Created in 19:23 2023/4/24
 */
public class LbServiceImpl extends BaseService<LbDao> implements LbService {

    @Override
    public Integer insertLb(Integer bookId) {
        int i = baseDao.insertLb(bookId);
        commit();//提交数据
        return i;
    }

    @Override
    public List<Integer> selectLb() {
        List<Integer> integers = baseDao.selectLb();
        return integers;
    }

    @Override
    public Integer deleteLb(Integer bookId) {
        Integer integer = baseDao.deleteLb(bookId);
        commit();
        return integer;
    }
}
